<template>
<div class="field myfield">
  <label :class="{must: field.is_must}">{{field.title}}</label>
  <div class="ui segment" :class="field.name" >
    <p>{{val}}</p>
  </div>
</div>
</template>

<script type="text/ecmascript-6">
import tool from 'src/util/tool';
import util from '_util/index';
import logic from '_logic';

const store=util.store

export default {
  data() {
    return {
      val: '',
    }
  },
  components:{},
  methods: {
  },
  watch: {
  },
  computed: {
  },
  props: ['field'],
  created() {
    this.val = this.field.fval;
    let op = store.get(this, 'op');
    if (op == 'insert')
      logic.edit.hlShowLine(this)

  },
  mounted() {
  }
};
</script>

<style scoped>
.field {}
</style>
